gdk_window_clear_backing_region (window);
}
+/**
+ * gdk_window_mark_paint_from_clip:
+ * @window: a #GdkWindow
+ * @cr: a #cairo_t
+ *
+ * If you call this during a paint (e.g. between gdk_window_begin_paint_region()
+ * and gdk_window_end_paint() then gdk will mark the current clip region of the
+ * window as being drawn. This is required when mixing GL rendering via
+ * gdk_cairo_draw_from_gl() and cairo rendering, as otherwise gdk has no way
+ * of knowing when something paints over the gl drawn regions.
+ *
+ * This is typically called automatically by Gtk and you don't need
+ * to care about this.
+ **/
+void
+gdk_window_mark_paint_from_clip (GdkWindow *window,
+ cairo_t *cr)
+{
+}
+
/**
* gdk_window_end_paint:
* @window: a #GdkWindow
GDK_AVAILABLE_IN_ALL
void gdk_window_begin_paint_rect (GdkWindow *window,
const GdkRectangle *rectangle);
+GDK_AVAILABLE_IN_3_14
+void gdk_window_mark_paint_from_clip (GdkWindow *window,
+ cairo_t *cr);
GDK_AVAILABLE_IN_ALL
void gdk_window_begin_paint_region (GdkWindow *window,
const cairo_region_t *region);
{
gboolean result;
+ gdk_window_mark_paint_from_clip (window, cr);
+
g_signal_emit (widget, widget_signals[DRAW],
0, cr,
&result);